(in-package :TRAPS)
; Generated from #P"macintosh-hd:hd3:CInterface Translator:Source Interfaces:lap.h"
; at Sunday July 2,2006 7:30:17 pm.
; 
;  * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
;  *
;  * @APPLE_LICENSE_HEADER_START@
;  * 
;  * The contents of this file constitute Original Code as defined in and
;  * are subject to the Apple Public Source License Version 1.1 (the
;  * "License").  You may not use this file except in compliance with the
;  * License.  Please obtain a copy of the License at
;  * http://www.apple.com/publicsource and read it before using this file.
;  * 
;  * This Original Code and all software distributed under the License are
;  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
;  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
;  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
;  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
;  * License for the specific language governing rights and limitations
;  * under the License.
;  * 
;  * @APPLE_LICENSE_HEADER_END@
;  
; 
;  *	Copyright (c) 1988, 1989 Apple Computer, Inc. 
;  
;  Definitions for generic access to AppleTalk link level protocols.
;  
; #ifndef _NETAT_LAP_H_
; #define _NETAT_LAP_H_

(require-interface "sys/appleapiopts")
(defconstant $AT_MID_ELAP 202)
; #define	AT_MID_ELAP	202
;  elap ioctl's 
; #define	ELAP_IOC_MYIOCTL(i)	((i>>8) == AT_MID_ELAP)
(defconstant $ELAP_IOC_GET_STATS 51714)
; #define	ELAP_IOC_GET_STATS	((AT_MID_ELAP<<8) | 2)
(defconstant $AT_MID_LAP 214)
; #define	AT_MID_LAP	214
;  Generic LAP ioctl's.  Each LAP may implement other ioctl's specific to
;  * its functionality.
;  
; #define	LAP_IOC_MYIOCTL(i)	  	((i>>8) == AT_MID_LAP)
(defconstant $LAP_IOC_ADD_ROUTE 54793)
; #define	LAP_IOC_ADD_ROUTE	   	((AT_MID_LAP<<8) | 9)
(defconstant $LAP_IOC_GET_ZONE 54796)
; #define	LAP_IOC_GET_ZONE		((AT_MID_LAP<<8) | 12)
(defconstant $LAP_IOC_GET_ROUTE 54797)
; #define	LAP_IOC_GET_ROUTE		((AT_MID_LAP<<8) | 13)
(defconstant $LAP_IOC_SNMP_GET_CFG 54805)
; #define LAP_IOC_SNMP_GET_CFG		((AT_MID_LAP<<8) | 21)
(defconstant $LAP_IOC_SNMP_GET_AARP 54806)
; #define LAP_IOC_SNMP_GET_AARP  		((AT_MID_LAP<<8) | 22)
(defconstant $LAP_IOC_SNMP_GET_RTMP 54807)
; #define LAP_IOC_SNMP_GET_RTMP		((AT_MID_LAP<<8) | 23)
(defconstant $LAP_IOC_SNMP_GET_ZIP 54808)
; #define LAP_IOC_SNMP_GET_ZIP		((AT_MID_LAP<<8) | 24)
(defconstant $LAP_IOC_SNMP_GET_DDP 54809)
; #define LAP_IOC_SNMP_GET_DDP		((AT_MID_LAP<<8) | 25)
(defconstant $LAP_IOC_SNMP_GET_NBP 54810)
; #define LAP_IOC_SNMP_GET_NBP		((AT_MID_LAP<<8) | 26)
(defconstant $LAP_IOC_SNMP_GET_PORTS 54811)
; #define LAP_IOC_SNMP_GET_PORTS		((AT_MID_LAP<<8) | 27)
; #ifdef NOT_USED
#| #|

#define ELAP_IOC_GET_CFG	((AT_MID_ELAP<<8) | 1)	
#define ELAP_IOC_SET_CFG	((AT_MID_ELAP<<8) | 3)	
#define ELAP_IOC_SET_ZONE	((AT_MID_ELAP<<8) | 4)	
#define ELAP_IOC_SWITCHZONE	((AT_MID_ELAP<<8) | 5)	

#define LAP_IOC_ONLINE		  	((AT_MID_LAP<<8) | 1) 
#define LAP_IOC_OFFLINE		  	((AT_MID_LAP<<8) | 2) 
#define LAP_IOC_GET_IFS_STAT	  	((AT_MID_LAP<<8) | 3) 
#define LAP_IOC_ADD_ZONE  	  	((AT_MID_LAP<<8) | 4) 
#define LAP_IOC_ROUTER_START 		((AT_MID_LAP<<8) | 5) 
#define LAP_IOC_ROUTER_SHUTDOWN 	((AT_MID_LAP<<8) | 6) 
#define LAP_IOC_ROUTER_INIT     	((AT_MID_LAP<<8) | 7) 
#define LAP_IOC_GET_IFID		((AT_MID_LAP<<8) | 8) 
#define LAP_IOC_GET_DBG			((AT_MID_LAP<<8) | 10) 
#define LAP_IOC_SET_DBG			((AT_MID_LAP<<8) | 11) 
#define LAP_IOC_ADD_IFNAME		((AT_MID_LAP<<8) | 14) 
#define LAP_IOC_DO_DEFER		((AT_MID_LAP<<8) | 15) 
#define LAP_IOC_DO_DELAY		((AT_MID_LAP<<8) | 16) 
#define LAP_IOC_SHUT_DOWN		((AT_MID_LAP<<8) | 17) 
#define LAP_IOC_CHECK_STATE		((AT_MID_LAP<<8) | 18) 
#define LAP_IOC_DEL_IFNAME		((AT_MID_LAP<<8) | 19) 
#define LAP_IOC_SET_MIX			((AT_MID_LAP<<8) | 20) 
#define LAP_IOC_SET_LOCAL_ZONES		((AT_MID_LAP<<8) | 28) 
#define LAP_IOC_GET_LOCAL_ZONE		((AT_MID_LAP<<8) | 29) 
#define LAP_IOC_IS_ZONE_LOCAL		((AT_MID_LAP<<8) | 30) 
#define LAP_IOC_GET_MODE		((AT_MID_LAP<<8) | 31) 
#define LAP_IOC_GET_IF_NAMES		((AT_MID_LAP<<8) | 32) 
#define LAP_IOC_GET_DEFAULT_ZONE	((AT_MID_LAP<<8) | 33) 
#define LAP_IOC_SET_DEFAULT_ZONES	((AT_MID_LAP<<8) | 34) 

#endif
|#
 |#
;  NOT_USED 

; #endif /*  _NETAT_LAP_H_ */


(provide-interface "lap")